import cv2
import os
import numpy as np

path1="1/Image_20210913162935200.bmp"
path2="1/Image_20210913162511022.jpg"
image1 = cv2.imread(path1)
image2 = cv2.imread(path2)
img_temp = image1.copy()
img_temp[:, :, 0], img_temp[:, :, 1], img_temp[:, :, 2] = np.average(img_temp, axis=(0, 1))
print(np.average(img_temp, axis=(0, 1)))
print(np.average(image2, axis=(0, 1)))

